import java.util.ArrayList;


public class document {

	public int documentID;
	public long docstart;
	public ArrayList<Long> gap = new ArrayList<Long>();
	
	public document(int id, long start) {
		documentID = id;
		docstart = start;
//		docstart.add(start);
	}
	
	public void add(long start) {
		long abstand = start;
		for(long l : gap) {
			abstand = abstand - l;
		}
		
		gap.add(abstand);
//		docstart.add(start);
	}
}
